import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    changs: '北京'
  },
  mutations: {
    changCityM (state, city) {
      state.changs = city
    }
  },
  actions: {
    changCity (ctx, city) {
      ctx.commit('changCityM', city)
    }
  }
})
